package controllers;

import java.util.List;

import models.NodeConfig;
import models.SensorConfig;
import play.Logger;
import play.mvc.Controller;

public class MPointConfigController extends Controller {

    public static void mpoints() {
        List<SensorConfig> mpointConfigList = models.SensorConfig.getMeasurementPointsByObject();
        render(mpointConfigList);
    }
    
    public static void setPropertyValue(String uid, String ip) {
        Logger.debug("Set ip %s for measurement point uid: %s", ip, uid);
        mpoints();
    }
}